how to find domain of inverse function